package com.jf3q.front.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.common.domain.EduCourse;
import com.jf3q.common.mapper.EduCourseMapper;
import com.jf3q.common.vo.CourseVo;
import com.jf3q.front.entity.Course;
import com.jf3q.front.service.EduCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【edu_course(课程)】的数据库操作Service实现
* @createDate 2024-05-29 16:12:02
*/
@Service
public class EduCourseServiceImpl extends ServiceImpl<EduCourseMapper, EduCourse>
    implements EduCourseService{
@Autowired
EduCourseMapper eduCourseMapper;
    @Override
    public CourseVo listAllById(String id) {
        CourseVo list = eduCourseMapper.listById(id);
        return list;
    }
    @Override
    public List<EduCourse> getHotEduCourse() {
        return eduCourseMapper.getHotEduCourse();
    }
}